package com.supersit.GZFDA.app;

import java.util.ArrayList;

public class StreetAndCommunity {
	static String[] areas = { "荔湾区", "越秀区", "海珠区", "天河区", "黄埔区", "白云区", "番禺区",
			"花都区", "增城区", "从化区", "南沙区", "萝岗区" };

	public static ArrayList<String> getStreet(String area) {
		ArrayList<String> streets = null;
		for (int i = 0; i < areas.length; i++) {
			if ("荔湾区".equals(area)) {

			} else if ("越秀区".equals(area)) {
				streets = Constan_yuexiu.getStreet(area);
			} else if ("海珠区".equals(area)) {

			} else if ("天河区".equals(area)) {

			} else if ("黄埔区".equals(area)) {

			} else if ("白云区".equals(area)) {

			} else if ("番禺区".equals(area)) {
				streets = Constan_panyu.getStreet(area);
				break;
			} else if ("花都区".equals(area)) {

			} else if ("增城区".equals(area)) {

			} else if ("从化区".equals(area)) {

			} else if ("南沙区".equals(area)) {
				streets = Constan_nansha.getStreet(area);
				break;
			} else if ("萝岗区".equals(area)) {

			}
		}
		return streets;
	}

	public static ArrayList<String> getCommunity(String area, String street) {
		ArrayList<String> communitys = null;
		for (int i = 0; i < areas.length; i++) {
			if ("荔湾区".equals(area)) {

			} else if ("越秀区".equals(area)) {
				communitys = Constan_yuexiu.getCommunity(street);
			} else if ("海珠区".equals(area)) {

			} else if ("天河区".equals(area)) {

			} else if ("黄埔区".equals(area)) {

			} else if ("白云区".equals(area)) {

			} else if ("番禺区".equals(area)) {
				communitys = Constan_panyu.getCommunity(street);
				break;
			} else if ("花都区".equals(area)) {

			} else if ("增城区".equals(area)) {

			} else if ("从化区".equals(area)) {

			} else if ("南沙区".equals(area)) {
				communitys = Constan_nansha.getCommunity(street);
				break;
			} else if ("萝岗区".equals(area)) {

			}
		}
		return communitys;
	}
}
